import bb.cascades 1.0

Container {
    id: language
    
    property string lang : "en" // en or cn
    onLangChanged: {
        if (lang == "en") {
            setEn() ;
        }else if (lang == "cn") {
            setCn() ;
        }
    }
    
    //buttons
    property string back : "Back"
    property string next : "Next"
    property string bottom_home : "Home"
    property string bottom_add : "Add"
    property string bottom_history : "History"
    property string bottom_chart : "Chart"
    
    property string side_setting : "Setting"
    property string side_help : "Help"
    property string side_about : "About"
    
    //home
    property string home_welcome : "<html>Welcome to <b>AesyMoney</b></html>"
    property string home_description : "AesyMoney helps you to manage your money, just simply input a number, history and charts will be generated automatically."
    property string home_balance : "Balance: "
    property string home_status : "<html><b>Status</b></html>"
    property string home_expenses_count : "Exppenses record count: "
    property string home_income_count : "Income record count: "
    property string home_expenses_sum : "All expenses: "
    property string home_income_sum : "All Income: "
    property string home_latest_record : "Time of latest record: "
    property string home_no_record : "No record"
    
    //income type
    property string income_salary : "Salary"
    property string income_investment : "Investment"
    property string income_others : "Others"
    
    property string type_all : "All" // all types
    //expenses type
    property string expenses_food : "Food"
    property string expenses_living : "Living"
    property string expenses_entertainment : "Entertainment"
    property string expenses_investment : "Investment"
    property string expenses_travel : "Travel"
    property string expenses_others : "Others"
    
    //add
    property string add_title : "Add a record"
    property string add_button_expenses : "Expenses"
    property string add_button_income : "Income"
    property string add_detail_amount : "Amount: "
    property string add_detail_amounthint : "Tap here to input amount"
    property string add_detail_type : "Type: "
    property string add_detail_time : "Time: "
    property string add_detail_description : "Add description here..."
    property string add_detail_confirm : "Confirm"
    property string add_detail_successful : "Record added successfully"
    
    //history
    property string history_title : "History"
    property string history_type : "Type: "
    property string history_time_start : "From: "
    property string history_time_end : "To: "
    property string history_search : "Search"
    property string history_detail_type : "Type: "
    property string history_update_amount : "Amount: "
    property string history_update_time : "Time: "
    property string history_update_button : "Update"
    property string history_update_des : "Description: "
    property string history_update_success : "Record update successfully !"
    
    //chart
    property string chart_title : "Chart"
    property string chart_income_type : "Income type: "
    property string chart_expenses_type : "Expenses type: "
    property string chart_chart_type : "Chart type: "
    property string chart_chart_Annualincome : "Annual income"
    property string chart_chart_Annualexpenditure : "Annual expenditure"
    property string chart_chart_Monthlyexpenditure : "Monthly expenditure"
    property string chart_chart_proportionincome : "The proportion of income type"
    property string chart_chart_proportionexpenses : "The proportion of expenses type"
    property string chart_time : "Time: "
    property string chart_time_start : "From: "
    property string chart_time_end : "To: "
    property string chart_generate : "Generate"
    property string chart_save : "Save chart"
    property string chart_generated : "Chart generated successfully"
    property string chart_saved : "Chart saved successfully to your photo folder"
    property string chart_warning : "* We are sorry we can't put texts on the chart due to a bug of Blackberry 10, once they fix the bug we will update the chart as soon as possible."
    property string chart_highest : "Highest value: "
    property string chart_lowest : "Lowest value: "
    property string chart_at : " at "
    property string chart_amount : "Amount: "
    
    //setting
    property string setting_title : "Setting"
    property string setting_change_language : "Switch language"
    property string setting_language : "Language: "
    property string setting_InitialAssets : "Initial Assets"
    property string setting_IA_description : "We don't need your name and your bank account, what you only need to do is just input a number."
    property string setting_IA_hint : "Please input a number here ..."
    
    //about
    property string about_title : "About"
    property string about_content0 : "<html><b>AesyMoney Lite</b> version 1.0     copyright(C) 2013 by Joey Chan <u>qqworini@gmail.com</u></html>"
    property string about_content1 : "<html>This is an open source software with GPLv3.</html>"
    property string about_content2 : "<html>Special thanks to my friend Leoz <u>LeozTheTwo@gmail.com</u> for his greate database skill!</html>"
    property string about_content3 : "<html>Thanks to <u>Alexander A. Avdonin, Artem N. Ivanov / ITGears Co</u> for his nightchart library!</html>"
    property string about_content4 : "<html>Blackberry 10 is an OS belongs to Blackberry.</html>"
    property string about_content5 : "<html>This software built by Qt 4.8.4, and Qt belongs to Digia.</html>"
    property string about_content6 : "<html>Thanks for using AesyMoney, if you have some ideas or advice, feel free to contact me <u>qqworini@gmail.com</u> :)</html>"
    property string about_content7 : "<html></html>"
    property string about_content8 : "<html></html>"
    
    //help
    property string help_title : "Help"
    property string help_home : "Help for Home"
    property string help_home_description : "This is the home page of AesyMoney, which shows a logo, a short description, and the status of user database."
    property string help_add : "Help for Add"
    property string help_add_description : "This is the add page of AesyMoney, first, the user need to choose income or expenses, then input the amount, type and the time."
    property string help_history : "Help for History"
    property string help_history_description : "This is a page about history, user only need to input the filters, a history list will be generated, also, some value can be modified via the history list."
    property string help_chart : "Help for Chart"
    property string help_chart_description : "This is a page with 'chart' functions, if the user already input many records into the database, chart can be generated and save to user folder throught this page."
    property string help_setting : "Help for Setting"
    property string help_setting_description : "When the user is viewing the home page, click the right-bottom button should show a side-bar, help, about and setting can be found here."
    property string help_setting_end : "Enjoy your AesyMoney !"
    
    // error
    property string error_input : "Invalid input !"
    property string error_database : "Database error !"
    property string error_no_data : "No data found !"
    property string error_chart_generate : "Generate chart failed !"
    property string error_chart_save : "Save chart failed !"
    
    function setEn() {
        //buttons
        back  = "Back"
        next  = "Next"
        bottom_home  = "Home"
        bottom_add  = "Add"
        bottom_history  = "History"
        bottom_chart  = "Chart"
        
        side_setting  = "Setting"
        side_help  = "Help"
        side_about  = "About"
        
        //home
        home_welcome  = "<html>Welcome to <b>AesyMoney</b></html>"
        home_description  = "AesyMoney helps you to manage your money, just simply input a number, history and charts will be generated automatically."
        home_balance  = "Balance: "
        home_status  = "<html><b>Status</b></html>"
        home_expenses_count  = "Exppenses record count: "
        home_income_count  = "Income record count: "
        home_expenses_sum  = "All expenses: "
        home_income_sum  = "All Income: "
        home_latest_record  = "Time of latest record: "
        home_no_record = "No record"
        
        //income type
        income_salary  = "Salary"
        income_investment  = "Investment"
        income_others  = "Others"
        
        type_all  = "All" // all types
        //expenses type
        expenses_food  = "Food"
        expenses_living  = "Living"
        expenses_entertainment  = "Entertainment"
        expenses_investment  = "Investment"
        expenses_travel  = "Travel"
        expenses_others  = "Others"
        
        //add
        add_title  = "Add a record"
        add_button_expenses  = "Expenses"
        add_button_income  = "Income"
        add_detail_amount  = "Amount: "
        add_detail_amounthint  = "Tap here to input amount"
        add_detail_type  = "Type: "
        add_detail_time  = "Time: "
        add_detail_description  = "Add description here..."
        add_detail_confirm  = "Confirm"
        add_detail_successful  = "Record added successfully"
        
        //history
        history_title  = "History"
        history_type  = "Type: "
        history_time_start  = "From: "
        history_time_end  = "To: "
        history_search  = "Search"
        history_detail_type  = "Type: "
        history_update_amount  = "Amount: "
        history_update_time  = "Time: "
        history_update_button  = "Update"
        history_update_des = "Description: "
        history_update_success = "Record update successfully !"
        
        //chart
        chart_title  = "Chart"
        chart_income_type  = "Income type: "
        chart_expenses_type  = "Expenses type: "
        chart_chart_type  = "Chart type: "
        chart_chart_Annualincome  = "Annual income"
        chart_chart_Annualexpenditure  = "Annual expenditure"
        chart_chart_Monthlyexpenditure  = "Monthly expenditure"
        chart_chart_proportionincome  = "The proportion of income type"
        chart_chart_proportionexpenses  = "The proportion of expenses type"
        chart_time  = "Time: "
        chart_time_start  = "From: "
        chart_time_end  = "To: "
        chart_generate  = "Generate"
        chart_save  = "Save chart"
        chart_generated  = "Chart generated successfully"
        chart_saved  = "Chart saved successfully to your photo folder"
        chart_warning  = "* We are sorry we can't put texts on the chart due to a bug of Blackberry 10, once they fix the bug we will update the chart as soon as possible."
        chart_highest  = "Highest value: "
        chart_lowest  = "Lowest value: "
        chart_at  = " at "
        chart_amount  = "Amount: "
        
        //setting
        setting_title  = "Setting"
        setting_change_language  = "Switch language"
        setting_language  = "Language: "
        setting_InitialAssets  = "Initial Assets"
        setting_IA_description  = "We don't need your name and your bank account, what you only need to do is just input a number."
        setting_IA_hint  = "Please input a number here ..."
        
        //about
        about_title  = "About"
        about_content0  = "<html><b>AesyMoney Lite</b> version 1.0     copyright(C) 2013 by Joey Chan <u>qqworini@gmail.com</u></html>"
        about_content1  = "<html>This is an open source software with GPLv3.</html>"
        about_content2  = "<html>Special thanks to my friend Leoz <u>LeozTheTwo@gmail.com</u> for his greate database skill!</html>"
        about_content3  = "<html>Thanks to <u>Alexander A. Avdonin, Artem N. Ivanov / ITGears Co</u> for his nightchart library!</html>"
        about_content4  = "<html>Blackberry 10 is an OS belongs to Blackberry.</html>"
        about_content5  = "<html>This software built by Qt 4.8.4, and Qt belongs to Digia.</html>"
        about_content6  = "<html>Thanks for using AesyMoney, if you have some ideas or advice, feel free to contact me <u>qqworini@gmail.com</u> :)</html>"
        about_content7  = "<html></html>"
        about_content8  = "<html></html>"
        
        //help
        help_title  = "Help"
        help_home  = "Help for Home"
        help_home_description  = "This is the home page of AesyMoney, which shows a logo, a short description, and the status of user database."
        help_add  = "Help for Add"
        help_add_description  = "This is the add page of AesyMoney, first, the user need to choose income or expenses, then input the amount, type and the time."
        help_history  = "Help for History"
        help_history_description  = "This is a page about history, user only need to input the filters, a history list will be generated, also, some value can be modified via the history list."
        help_chart  = "Help for Chart"
        help_chart_description  = "This is a page with 'chart' functions, if the user already input many records into the database, chart can be generated and save to user folder throught this page."
        help_setting  = "Help for Setting"
        help_setting_description  = "When the user is viewing the home page, click the right-bottom button should show a side-bar, help, about and setting can be found here."
        help_setting_end  = "Enjoy your AesyMoney !"
        
        // error
        error_input  = "Invalid input !"
        error_database  = "Database error !"
        error_no_data = "No data found !"
        error_chart_generate  = "Generate chart failed !"
        error_chart_save  = "Save chart failed !"
    }
    
    function setCn() {
        //buttons
        back  = "上一步"
        next  = "下一步"
        bottom_home  = "主页"
        bottom_add  = "添加"
        bottom_history  = "历史"
        bottom_chart  = "图表"
        
        side_setting  = "设置"
        side_help  = "帮助"
        side_about  = "关于"
        
        //home
        home_welcome  = "<html>欢迎使用 <b>AesyMoney</b></html>"
        home_description  = "AesyMoney钱包管理小助手帮助您管理您的钱包，每天只需要简单地输入一个数字，历史记录和图表将自动生成并呈现出来。"
        home_balance  = "余额： "
        home_status  = "<html><b>状态</b></html>"
        home_expenses_count  = "支出记录次数： "
        home_income_count  = "收入记录次数： "
        home_expenses_sum  = "支出总额： "
        home_income_sum  = "收入总额： "
        home_latest_record  = "最新记录时间： "
        home_no_record = "没有记录"
        
        //income type
        income_salary  = "工资"
        income_investment  = "投资"
        income_others  = "其它"
        
        type_all  = "所有" // all types
        //expenses type
        expenses_food  = "食物"
        expenses_living  = "生活"
        expenses_entertainment  = "娱乐"
        expenses_investment  = "投资"
        expenses_travel  = "旅游"
        expenses_others  = "其它"
        
        //add
        add_title  = "添加一条记录"
        add_button_expenses  = "支出"
        add_button_income  = "收入"
        add_detail_amount  = "金额： "
        add_detail_amounthint  = "点击这里来输入数字"
        add_detail_type  = "类型： "
        add_detail_time  = "时间： "
        add_detail_description  = "这里添加描述"
        add_detail_confirm  = "确认"
        add_detail_successful  = "成功添加一条记录"
        
        //history
        history_title  = "历史记录"
        history_type  = "类型： "
        history_time_start  = "从： "
        history_time_end  = "到： "
        history_search  = "搜索"
        history_detail_type  = "类型： "
        history_update_amount  = "金额： "
        history_update_time  = "时间： "
        history_update_button  = "更改"
        history_update_des = "描述："
        history_update_success = "记录更改成功"
        
        //chart
        chart_title  = "图表"
        chart_income_type  = "收入类型： "
        chart_expenses_type  = "支出类型： "
        chart_chart_type  = "图表类型： "
        chart_chart_Annualincome  = "年收入"
        chart_chart_Annualexpenditure  = "年支出"
        chart_chart_Monthlyexpenditure  = "月支出"
        chart_chart_proportionincome  = "收入类型比率"
        chart_chart_proportionexpenses  = "支出类型比率"
        chart_time  = "时间： "
        chart_time_start  = "从： "
        chart_time_end  = "到： "
        chart_generate  = "生成图表"
        chart_save  = "保存图表"
        chart_generated  = "成功生成图表！"
        chart_saved  = "图表已保存至您的图片文件夹"
        chart_warning  = "* 很抱歉，由于黑莓10系统的一个问题，导致我们不能把文本在图表上，一旦他们解决这个错误，我们会尽快更新图表功能。"
        chart_highest  = "最大值： "
        chart_lowest  = "最小值： "
        chart_at  = " 于 "
        chart_amount  = "金额： "
        
        //setting
        setting_title  = "设置"
        setting_change_language  = "切换语言"
        setting_language  = "语言： "
        setting_InitialAssets  = "初始资产"
        setting_IA_description  = "我们不需要您的名字和您的银行帐户，你唯一需要做的仅仅是输入一个数字。"
        setting_IA_hint  = "请输入一个数字"
        
        //about
        about_title  = "About"
        about_content0  = "<html><b>AesyMoney Lite</b> 版本 1.0     copyright(C) 2013 by Joey Chan <u>qqworini@gmail.com</u></html>"
        about_content1  = "<html>这是一个以 GPLv3协议 发布的开源软件</html>"
        about_content2  = "<html>特别感谢我的朋友 Leoz <u>LeozTheTwo@gmail.com</u> 和他强大的数据库技能。</html>"
        about_content3  = "<html>感谢 <u>Alexander A. Avdonin, Artem N. Ivanov / ITGears Co</u> 和他的nightchart库。</html>"
        about_content4  = "<html>Blackberry 10 是一款手机操作系统，属于RIM公司（现已更名为黑莓公司）。</html>"
        about_content5  = "<html>本软件使用 Qt 4.8.4， Qt 属于 芬兰Digia公司。</html>"
        about_content6  = "<html>感谢使用AesyMoney，如果您有什么意见或建议，欢迎联系我 <u>qqworini@gmail.com</u> :)</html>"
        about_content7  = "<html></html>"
        about_content8  = "<html></html>"
        
        //help
        help_title  = "帮助"
        help_home  = "帮助 主页"
        help_home_description  = "这是AesyMoney的主页，这里有一个Logo、一个简单介绍和数据库的状态。"
        help_add  = "帮助 添加"
        help_add_description  = "这是AesyMoney的添加记录页面，首先，用户需要选择支出或收入，然后输入金额、类型和时间即可。"
        help_history  = "帮助 历史"
        help_history_description  = "这是AesyMoney的历史记录页面，用户只需要输入一些过滤参数，就会生成一个历史记录列表，同时，用户还能在这个列表里面修改记录。"
        help_chart  = "帮助 图表"
        help_chart_description  = "这是AesyMoney的图表统计功能页面，如果用户已经输入了一定数量的数据进数据库，就能用此功能来生成一个统计图表并可以保存至用户文件夹。"
        help_setting  = "帮助 设置"
        help_setting_description  = "当用户在主页的时候，点击右下角的按钮就会出现一个侧边栏，帮助信息、关于、和设置功能就能在此打开。"
        help_setting_end  = "尽情享用AesyMoney吧！"
        
        // error
        error_input  = "数据输入似乎有误哦"
        error_database  = "数据库发生错误"
        error_no_data = "没找到数据"
        error_chart_generate  = "图表生成失败"
        error_chart_save  = "保存图表失败"
    }
}
